home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111)))) 1111 ((((DDDDeeeecccc 11111111,,,, 1111999988887777)))) RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- rleClock - Generate a clock face in RLE format
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- rrrrlllleeeeCCCClllloooocccckkkk [ _o_p_t_i_o_n_s ] [ ----oooo _o_u_t_f_i_l_e ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This program generates an analog clock face in _R_L_E(5) file
- format and writes it to _o_u_t_f_i_l_e or standard output. The
- picture is a standard clock face with optional digital
- representation above. The user has control over the colors
- of the portions of the clock face, the text, and the text
- background. The user also has control over the clock
- configuration: number of ticks, scale of the big and little
- hands, the values of the big and little hands, and the
- format used to generate the digital portion.
-
- By default, rrrrlllleeeeCCCClllloooocccckkkk generates a standard analog clock face
- displaying the current time and with no digital portion.
- This default face is transparent, that is, the alpha channel
- is only defined for the clock outline, tick marks, and the
- hands.
-
- On those options that expect colors, three numbers must be
- given after the option switch. These are values for red,
- green, and blue on a scale of zero through 255. Those color
- options that are capitalized indicate the colors for the
- filled regions (optional for the clock face and text but
- default for the hands). Those that are not capitalized are
- for lines that either outline or constitute the feature (the
- clock face is default, but they're optional for the hands).
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----hhhheeeellllpppp
- Prints a synopsis of the options.
-
- The options that control the value displayed by the clock
- are
-
- ----llllssss _F_L_O_A_T
- This specifies the full scale (360 degrees) of the
- little hand. Default is 12.
-
- ----llllvvvv _F_L_O_A_T
- This specifies the value of the little hand, expressed
- in units of the little hand full scale. Default is the
- current hour time on a 12-hour scale.
-
- ----bbbbssss _F_L_O_A_T
- This specifies the full scale (360 degrees) of the big
- hand. Default is 60.
-
-
-
-
- Page 1 (printed 12/1/98)
-
-
-
-
-
-
- RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111)))) 1111 ((((DDDDeeeecccc 11111111,,,, 1111999988887777)))) RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111))))
-
-
-
- ----bbbbvvvv _F_L_O_A_T
- This specifies the value of the big hand, expressed in
- units of the big hand full scale. Default is the
- current minute time.
-
- The following options manage the display configuration of
- the clock:
-
- ----xxxx _I_N_T
- The INT specifies the width of the clock in pixels.
- Default is 128.
-
- ----ccccyyyy _I_N_T
- The INT specifies the height of the clock face (minus
- text portion) in pixels. The default is 128.
-
- ----ttttyyyy _I_N_T
- The INT specifies the height in pixels of the text
- portion of the display. If it is zero (the default),
- no text portion is displayed.
-
- ----tttt _I_N_T
- This specifies the number of tick marks to place around
- the clock. The default is 12.
-
- ----llllwwww _I_N_T
- This specifies the line width in pixels of the clock
- face, the tick marks, the optional hand borders, and
- the text. The default is one, but two or three give
- better looking clocks.
-
- ----ttttffff _S_T_R
- The string describes how to show the digital portion of
- the clock. The rules for forming STR are the same as
- for _p_r_i_n_t_f format strings, that is, a percent sign,
- optionally followed by field width values, followed by
- a key letter. In this case, the key letter may be bbbb,,,,
- llll,,,, BBBB,,,, or LLLL.... Lower case bbbb means to insert the integer
- value of the big hand and upper case BBBB means to insert
- the floating point value of the big hand. Lower case llll
- means to insert the integer value of the little hand
- and upper case LLLL means to insert the floating point
- value of the little hand.
-
- ----ffffcccc _R _G _B
- This specifies the color in red, green, and blue, of
- the clock face.
-
- ----FFFFcccc _R _G _B
- This specifies the color to fill in inside the clock
- face, under the hands. If this option is not supplied,
- the clock is generated with no inside-face background
-
-
-
- Page 2 (printed 12/1/98)
-
-
-
-
-
-
- RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111)))) 1111 ((((DDDDeeeecccc 11111111,,,, 1111999988887777)))) RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111))))
-
-
-
- (by use of the alpha channel).
-
- ----HHHHcccc _R _G _B
- This specifies the color to draw in the hands with.
-
- ----hhhhcccc _R _G _B
- This specifies the color to draw the outlines of the
- hands. If it is not given, no outlines are drawn on
- the edges of the hands.
-
- ----ttttcccc _R _G _B
- This specifies the color of the text above the clock.
- It only has effect if a text height (-ty) is supplied.
-
- ----TTTTcccc _R _G _B
- This specifies the color of a background field to place
- behind the text. If omitted, no background (zero alpha
- channel) is drawn.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- rrrrlllleeeeCCCClllloooocccckkkk
- Generates a transparent clock face showing the current
- time and no digital representation.
-
- rrrrlllleeeeCCCClllloooocccckkkk ----ttttyyyy 33332222
- Generates a current-time clock with digital
- representation above.
-
- 111122228888 111122228888
- rrrrlllleeeeCCCClllloooocccckkkk ----FFFFcccc 222255555555 0000 0000 ----HHHHcccc 0000 0000 222255555555 ----llllwwww 3333 ----ttttyyyy 99996666 ----ttttcccc 0000 222255555555 0000 ----TTTTcccc 111122228888
- Generates a clock with a red inside, white face, blue
- hands, wide lines, tall text field, green test, and
- grey text background.
-
- rrrrlllleeeeCCCClllloooocccckkkk ----ttttyyyy 33332222 ----bbbbssss 11110000 ----bbbbvvvv 4444....55551111 ----llllssss 111100000000 ----llllvvvv 44445555....1111 ----ttttffff """"%%%%2222llll....%%%%2222....2222BBBB""""
- Generates a clock with the scale of the big hand set to
- 10 and it's value at 4.51, the scale and value of the
- little hand as 100 and 45.1, and the format for the
- digital portion formatted as %%%%2222dddd....%%%%2222....2222ffff to print the
- integer little hand value (two spaces) and the floating
- point big hand value.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _u_r_t(1), _R_L_E(5).
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Robert L. Brown, RIACS, NASA Ames Research Center
-
- BBBBUUUUGGGGSSSS
- Not thoroughly checked when the line width is cranked up.
- May dump core.
-
-
-
-
- Page 3 (printed 12/1/98)
-
-
-
-
-
-
- RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111)))) 1111 ((((DDDDeeeecccc 11111111,,,, 1111999988887777)))) RRRRLLLLEEEECCCCLLLLOOOOCCCCKKKK((((1111))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 12/1/98)
-
-
-
-
-
-
-